using System;
using System.IO;

namespace Evolve.Util.MailTemplates
{
  /// <summary>
  /// Stores file information and cached
  /// <see cref="MailTemplate"/> objects.
  /// </summary>
  public class TemplateDeclaration
  {
    #region members

    /// <summary>
    /// The cached template.
    /// </summary>
    private MailTemplate cachedTemplate = null;

    /// <summary>
    /// The template file.
    /// </summary>
    private FileInfo templateFile;

    #endregion


    #region properties

    /// <summary>
    /// The cached template.
    /// </summary>
    public MailTemplate CachedTemplate
    {
      get { return this.cachedTemplate; }
      set { this.cachedTemplate = value; }
    }

    public System.IO.FileInfo TemplateFile
    {
      get { return this.templateFile; }
    }    

    #endregion


    /// <summary>
    /// Inits the object.
    /// </summary>
    /// <param name="template">The template object.</param>
    /// <param name="templateFile">File that contains the template's body.</param>
    public TemplateDeclaration(MailTemplate template, FileInfo templateFile)
    {
      this.templateFile = templateFile;
    }


  }
}
